package cn.itcast.service.system;

import cn.itcast.domain.system.Role;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface RoleService {
    public List<Role> findAll(String companyId);

    Role findById(String id);

    void save(Role role);

    void updateById(Role role);

    void deleteById(String id);

    PageInfo<Role> findByPage(Integer page, Integer pageSize, String companyId);

    String findRoleByUserid(String id);
}
